import express from 'express'

const app = express()

app.use(express.static("public"))

app.all("/*", (req, res, next) => {
    res.header("Access-Control-Allow-Origin", "*")
    res.header("Access-Control-Allow-Method", "GET")
    next()
})

app.listen(3000, () => {
    console.log("服务器启动在3000端口")
})